package com.youhong.teethcare.plaque.dialogs;

import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.youhong.teethcare.R;


/**
 * Created by Administrator on 2018/9/11.
 */

public class ToothLocationDialog extends Dialog {

    TextView tv_understand;
    Runnable runnable_understand;

    public ToothLocationDialog(@NonNull Context context) {
        super(context);
        setContentView(R.layout.dialog_toothlocation);
        getViews();

    }

    public ToothLocationDialog(@NonNull Context context, int themeResId) {
        super(context, themeResId);
        setContentView(R.layout.dialog_toothlocation);
        getViews();
    }

    private void getViews() {
        tv_understand = findViewById(R.id.bleeding_tv_ok);
        tv_understand.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (runnable_understand != null)
                    runnable_understand.run();

                ToothLocationDialog.this.dismiss();
            }
        });
    }
}
